package org.com.action.user;

import java.util.List;

import org.com.dao.RegistDao;
import org.com.domain.User;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.Preparable;

public class UserListAction implements Action, Preparable {
	
	List<User> userList;
	RegistDao registdao;
	

	public List<User> getUserList() {
		
		return userList;
	}

	public String execute() throws Exception {
		userList = registdao.getUserList();
		
		return SUCCESS;
	}


	public void prepare() throws Exception {
		registdao = new RegistDao();
	}
	/*
	public List<User> getModel() {
		// TODO Auto-generated method stub
		return userList;
	}
	*/
}
